/*
 * <p>Copyright ®Alyce_WX版权所有。</p>
 * 类名:DictPO
 * 创建人:alyce_wx
 * 创建时间:2017-03-30
 */
package com.wx.demo.wcd.domain.po;

import com.yjhl.framework.domain.po.PO;
import com.wx.demo.wcd.domain.pk.DictPK;

/**
 * persistent class for Dict
 * 
 * @author alyce_wx
 * @since 1.8
 * @version 1.0.0
 */

public class DictPO extends PO {
	private static final long serialVersionUID = 1L;

	/**
	 * 字典标识
	 */
	private String dictId;

	/**
	 * 字典标题
	 */
	private String dictTitle;

	/**
	 * 字典编码
	 */
	private String dictCode;

	/**
	 * 字典类型代码
	 */
	private String dictTypeCode;

	/**
	 * 父级代码
	 */
	private String parentCode;

	/**
	 * 状态代码
	 */
	private String stsCode;

	public String getDictId() {
		return dictId;
	}

	public void setDictId(String dictId) {
		this.dictId = dictId;
	}

	public String getDictTitle() {
		return dictTitle;
	}

	public void setDictTitle(String dictTitle) {
		this.dictTitle = dictTitle;
	}

	public String getDictCode() {
		return dictCode;
	}

	public void setDictCode(String dictCode) {
		this.dictCode = dictCode;
	}

	public String getDictTypeCode() {
		return dictTypeCode;
	}

	public void setDictTypeCode(String dictTypeCode) {
		this.dictTypeCode = dictTypeCode;
	}

	public String getParentCode() {
		return parentCode;
	}

	public void setParentCode(String parentCode) {
		this.parentCode = parentCode;
	}

	public String getStsCode() {
		return stsCode;
	}

	public void setStsCode(String stsCode) {
		this.stsCode = stsCode;
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isNull()
	 */
	@Override
	public boolean isNull() {
		return (dictId == null && dictTitle == null && dictCode == null
				&& dictTypeCode == null && parentCode == null && stsCode == null);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isEmpty()
	 */
	@Override
	public boolean isEmpty() {
		return (dictId == null && dictTitle == null && dictCode == null
				&& dictTypeCode == null && parentCode == null && stsCode == null);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkNull()
	 */
	@Override
	public boolean isNonPkNull() {
		return (dictTitle == null && dictCode == null && dictTypeCode == null
				&& parentCode == null && stsCode == null);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#isNonPkEmpty()
	 */
	@Override
	public boolean isNonPkEmpty() {
		return (dictTitle == null && dictCode == null && dictTypeCode == null
				&& parentCode == null && stsCode == null);
	}

	/**
	 * @see com.yjhl.framework.domain.po.PO#buildPK()
	 */
	@Override
	public DictPK buildPK() {
		DictPK entityPK = new DictPK();

		entityPK.setDictId(dictId);

		return entityPK;
	}

	@Override
	public String toString() {

		String toString = "{";
		if (this.dictId != null) {
			toString += (this.dictId + ",");
		}
		if (this.dictTitle != null) {
			toString += (this.dictTitle + ",");
		}
		if (this.dictCode != null) {
			toString += (this.dictCode + ",");
		}
		if (this.dictTypeCode != null) {
			toString += (this.dictTypeCode + ",");
		}
		if (this.parentCode != null) {
			toString += (this.parentCode + ",");
		}
		if (this.stsCode != null) {
			toString += (this.stsCode + ",");
		}
		if (toString.lastIndexOf(",") == (toString.length() - 1)) {
			toString = toString.substring(0, toString.length() - 1);
		}
		toString += "}";
		return toString;

	}

	public String inputDescription() {

		String inputDescription = "{";
		if (this.dictId != null) {
			inputDescription += (this.dictId + " : 字典标识,");
		}
		if (this.dictTitle != null) {
			inputDescription += (this.dictTitle + " : 字典标题,");
		}
		if (this.dictCode != null) {
			inputDescription += (this.dictCode + " : 字典标题,");
		}
		if (this.dictTypeCode != null) {
			inputDescription += (this.dictTypeCode + " : 字典类型代码,");
		}
		if (this.parentCode != null) {
			inputDescription += (this.parentCode + " : 父级代码,");
		}
		if (this.stsCode != null) {
			inputDescription += (this.stsCode + " : 状态代码,");
		}
		if (inputDescription.lastIndexOf(",") == (inputDescription.length() - 1)) {
			inputDescription = inputDescription.substring(0,
					inputDescription.length() - 1);
		}
		inputDescription += "}";

		return inputDescription;
	}
}
